<!-- head -->
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li><a>主页</a></li>
            <li><a>风控管理</a></li>
            <li class="active"><strong>限额详情</strong></li>
        </ol>
    </div>
</div>

<!-- content-->
<div class="wrapper wrapper-content animated fadeIn" ng-controller="transLimitRuleDetailCtrl">
    <form class="form-horizontal" id="form1" name="horizontalCard">
        <div class="form-group">
            <div class="ibox float-e-margins">
                <div class="ibox-content">

                    <div class="row">
                        <div class="ibox-title">
                            <h5>业务类型</h5>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label"><i class="red_req">*</i>业务类型:</label>
                            <div class="col-sm-2">
                                <select class="form-control" ng-model="info.limitAction" name="limitAction" disabled="disabled" ng-options="x.value as x.text for x in limitActiones"/>
                                <div class="req_mesg" ng-show="horizontalCard.limitAction.$dirty && horizontalCard.limitAction.$invalid">
                                    <span ng-show="horizontalCard.limitAction.$error.required">业务类型不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="ibox-title">
                            <h5>组织设置</h5>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>组织设置:</label>
                            <div class="col-sm-2">
                                <select class="form-control" name="teamType" disabled="disabled" ng-model="info.teamType" ng-change="getTeamList()">
                                    <option value="all">不限</option>
                                    <option value="1">指定组织</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" ng-show="info.teamType==1">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-2">
                                <div class="gridStyle" ui-grid="teamGrid" ui-grid-selection ui-grid-resize-columns class="grid"></div>
                            </div>
                        </div>

                        <div class="ibox-title"  ng-show="info.limitAction=='QUOTA'">
                            <h5>限额设置</h5>
                        </div>
                        <div class="form-group" ng-show="info.limitAction=='QUOTA'">
                            <label class="col-lg-2 control-label"><i class="red_req">*</i>单日最大交易金额设置(元):</label>
                            <div class="col-sm-2">
                                <input class="form-control" ng-model="info.singleDayAmount" name="singleDayAmount" disabled="disabled" ng-pattern="/^(([1-9]\d{0,9})|0)(\.\d{1,2})?$/"/>
                                <div class="req_mesg" ng-show="horizontalCard.singleDayAmount.$dirty && horizontalCard.singleDayAmount.$invalid">
                                    <span ng-show="horizontalCard.singleDayAmount.$error.required">单日最大交易金额不能为空</span>
                                    <span ng-show="horizontalCard.singleDayAmount.$error.pattern">单日最大交易金额格式不正确</span>
                                </div>
                            </div>
                            <label class="col-lg-2 control-label"><i class="red_req">*</i>单笔最大交易额设置(元):</label>
                            <div class="col-sm-2">
                                <input class="form-control" ng-model="info.singleCountAmount" name="singleCountAmount" disabled="disabled" ng-pattern="/^(([1-9]\d{0,9})|0)(\.\d{1,2})?$/"/>
                                <div class="req_mesg" ng-show="horizontalCard.singleCountAmount.$dirty && horizontalCard.singleCountAmount.$invalid">
                                    <span ng-show="horizontalCard.singleCountAmount.$error.required">单笔最大交易额不能为空</span>
                                    <span ng-show="horizontalCard.singleCountAmount.$error.pattern">单笔最大交易额格式不正确</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group" ng-show="info.limitAction=='QUOTA'">
                            <label class="col-lg-2 control-label"><i class="red_req">*</i>单日单卡最大交易额设置(元):</label>
                            <div class="col-sm-2">
                                <input class="form-control" ng-model="info.singleDaycardAmount" name="singleDaycardAmount" disabled="disabled" ng-pattern="/^(([1-9]\d{0,9})|0)(\.\d{1,2})?$/"/>
                                <div class="req_mesg" ng-show="horizontalCard.singleDaycardAmount.$dirty && horizontalCard.singleDaycardAmount.$invalid">
                                    <span ng-show="horizontalCard.singleDaycardAmount.$error.required">单日单卡最大交易额不能为空</span>
                                    <span ng-show="horizontalCard.singleDaycardAmount.$error.pattern">单日单卡最大交易额格式不正确</span>
                                </div>
                            </div>
                            <label class="col-lg-2 control-label"><i class="red_req">*</i>单日单卡最大交易笔数设置(笔):</label>
                            <div class="col-sm-2">
                                <input class="form-control" ng-model="info.singleDaycardCount" name="singleDaycardCount" disabled="disabled" ng-pattern="/^(([1-9]\d{0,9})|0)?$/"/>
                                <div class="req_mesg" ng-show="horizontalCard.singleDaycardCount.$dirty && horizontalCard.singleDaycardCount.$invalid">
                                    <span ng-show="horizontalCard.singleDaycardCount.$error.required">单日单卡最大交易笔数不能为空</span>
                                    <span ng-show="horizontalCard.singleDaycardCount.$error.pattern">单日单卡最大交易笔数格式不正确</span>
                                </div>
                            </div>
                        </div>
                        <div class="ibox-title">
                            <h5>卡类型设置</h5>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label"><i class="red_req">*</i>卡类型:</label>
                            <div class="col-sm-2">
                                <select class="form-control" ng-model="info.cardType" name="cardType" disabled="disabled" ng-options="x.value as x.text for x in cardType">
                                    <option value="">请选择卡类型</option>
                                </select>
                                <div class="req_mesg" ng-show="horizontalCard.cardType.$dirty && horizontalCard.cardType.$invalid">
                                    <span ng-show="horizontalCard.cardType.$error.required">卡类型不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="ibox-title">
                            <h5>省市设置</h5>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>省市设置:</label>
                            <div class="col-sm-2">
                                <select class="form-control" name="areaType" disabled="disabled" ng-model="info.areaType" ng-change="getAreaTypeList()">
                                    <option value="all">不限</option>
                                    <option value="1">指定省市</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" ng-show="info.areaType==1">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-3">
                                <div class="gridStyle" ui-grid="provinceGrid" ui-grid-selection ui-grid-resize-columns class="grid"></div>
                            </div>
                            <label class="control-label"></label>
                            <div class="col-sm-3">
                                <div class="gridStyle" ui-grid="cityGrid" ui-grid-selection ui-grid-resize-columns class="grid"></div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-12 bgff">
                <div class="col-sm-12">
                    <div class="col-lg-3"></div>
                    <div class="col-sm-6">
                        <a class="btn btn-primary4" ui-sref="risk.transLimitRule" >返回</a>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>